package com.crm.model.mdao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.crm.model.mpojo.Refundgood;

@Mapper
public interface RefundgoodMapper {
    int deleteByPrimaryKey(Integer rgId);

    int insert(Refundgood record);

    int insertSelective(Refundgood record);

    Refundgood selectByPrimaryKey(Integer rgId);

    int updateByPrimaryKeySelective(Refundgood record);

    int updateByPrimaryKey(Refundgood record);
    
    /**
     * 上一年度盈利统计
     */
    Map<String, String> yearProfile();
    
    /**
     * 根据订单编号查询
     * @param oId
     * @return
     */
    List<Map<String, String>>  selectByoId(Integer oId);

	Map<String, String> selectByrgview(Integer rgId);
	
	List<Map<String, String>> selectAll(@Param("searchid")Integer statusid,@Param("search")String search);
}